package com.zwy.space.service;

import com.zwy.space.domain.Images;
import com.zwy.space.mapper.ImageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImageService {

    @Autowired
    private ImageMapper imageMapper;

    public List<Images> findAllImages() {
        return imageMapper.findAllImages();
    }

    public List<Images> findImagesByTime(int timeId) {
        return  imageMapper.findImagesByTime(timeId);
    }
}
